docs.rs failed to build netcdf-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
netcdf-0.9.1
rust-netcdf
High-level NetCDF bindings for Rust
Status
Not (yet) supported: appending to existing files (using unlimited dimensions), user defined types, string variables, multi-valued attributes, strided/subsetted reads. All variable data is read into a 1-dimensional Vec with the last variable dimension varying fastest.
Building
rust-netcdf depends on libnetcdf.
Read Example
// Open file simple_xy.nc:
let file = open.unwrap;
// Access any variable, attribute, or dimension through simple HashMap's:
let var = file.root.variables.get.unwrap;
// Read variable as any NC_TYPE, optionally failing if doing so would
// force a cast:
let data : = var.get_int.unwrap;
// All variable data is read into 1-dimensional Vec.
for x in 0..
Write Example
let f = test_file_new; // just gets a path inside repo
let mut file = create.unwrap;
let dim_name = "ncrabs";
file.root.add_dimension.unwrap;
let var_name = "crab_coolness_level";
let data : = vec!;
// Variable type written to file is inferred from Vec type:
file.root.add_variable.unwrap;
Documentation
I intend to improve documentation soon. For now, check out tests/lib.rs for quite a few usage examples.